# -*- coding: utf-8 -*-

__all__ = ['DataDownloaderBase', 'GF_DataDownloaderBase', '_data_downloader_class_cache', '_data_downloader_cache']

class DataDownloaderBase(object):
    def download(self, info, *args, **kwargs):
        pass


class GF_DataDownloaderBase(DataDownloaderBase):
    def __init__(self, *args, **kwargs):
        self.name = kwargs.get('name')
        self.dataset = kwargs.get('dataset')
        self.download_project = kwargs.get('download_project')
        self.start_date = kwargs.get('start_date')
        self.forecast_hours = kwargs.get('forecast_hours')
        self.fnames = kwargs.get('fnames')
        self.thread_number = kwargs.get('thread_number')
        self.allowed_time = kwargs.get('allowed_time')


_data_downloader_class_cache = {}
_data_downloader_cache = {}

